using System;
using System.Collections.Generic;
using System.Configuration;
using System.IO;
using System.Data;
using System.Text;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

using PlugNT.Cms.Custom;
using PlugNT.Common;
using PlugNT.Cms.Page;

namespace PlugNT.Cms.Web.Admin.Pre_Systems
{
    public partial class SetTemplet : AdminPager
    {

        protected void Page_Load(object sender, EventArgs e)
        {

            this.CheckPower();

            if (!IsPostBack)
            {
                InitData();
            }
        }

        private void InitData()
        {
            string []dirs = Directory.GetDirectories(WebConfig.RootPath + hidTempletRoot.Value);
            List<string> list = new List<string>();
            foreach (string dir in dirs)
            {
                string sFile = Path.GetFileName(dir);
                list.Add(sFile);
            }
            this.rptTemplet.DataSource = list;
            this.rptTemplet.DataBind();
        }



    }
}

